package cn.com.dcsgo.service.impl;

import cn.com.dcsgo.dao.StudentDao;
import cn.com.dcsgo.dao.impl.StudentDaoImpl;
import cn.com.dcsgo.pojo.Student;
import cn.com.dcsgo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * StudentServiceImpl
 *
 * @author Dcsgo
 * @since 2025/2/4 16:05
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;

    @Override
    public List<Student> findAll() {
        return studentDao.queryAll();
    }
}
